<template>
    <div>
        <h1>{{name}}</h1>
        <!-- v-model   :value   @input=val=>this.name=val -->
        <my-input  v-model='name'></my-input>
    </div>
</template>
<script>
// @ is an alias to /src
import myinput from './coms/myinput'
export default {
    name: 'XXX',
    data() {
        return {
          name:666
        }
    },
    components: {
        'my-input':myinput
    }
}
</script>
<style lang="less">

</style>